﻿@* Ui层项目组件导入文件 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    Model.Output.FileNameNoExtension = "_ViewImports";
    Model.Output.Extension = ".cshtml";
    Model.Output.RelativeRootPath = $"src/{service.GetUiProjectName()}/Pages";
}
@("@")using System.ComponentModel.DataAnnotations
@@using Microsoft.AspNetCore.Mvc.RazorPages
@@using @service.GetUiNamespace()
@foreach ( var item in service.GetDtoNamespaces() ) {
@:@@using @item
}
@foreach ( var item in service.GetQueryNamespaces() ) {
@:@@using @item
}
@@namespace @service.GetUiNamespace("Pages")
@@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@@addTagHelper *, Util.Ui.Angular
@@addTagHelper *, Util.Ui.NgZorro
@@addTagHelper *, Util.Ui.NgAlain